﻿using SqlSugar;
using System;

namespace ALEXBlog.Entity
{
    [SugarTable("UsersTable", TableDescription = "is users table")]
    public class UsersModel:BaseModel
    {
        ////id
        //[SugarColumn(IsPrimaryKey = true, ColumnDataType = "Nvarchar(255)")]
        //public Guid Id { get; set; }

        /// <summary>
        /// 名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 性别
        /// </summary>
        public bool Sex { get; set; }

        /// <summary>
        /// 生日
        /// </summary>
        [SugarColumn(IsNullable = true)]
        public DateTime BirthDay { get; set; } = DateTime.Now;

        /// <summary>
        /// 介绍
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(255)")]
        public string Introduction { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        public string Email { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        public string PassWord { get; set; }

    }
}
